#include <ioCC2530.h>

#define LED3 (P1_0)
#define LED4 (P1_1)
#define LED5 (P1_3)
#define LED6 (P1_4)

void initial_gpio(void){
  
      P1SEL &=~0X1B;
  
      P1DIR |=0X1B;
      
      P1 &=~0X1B;
}

void delay(unsigned int time){
      
      for(unsigned int i = 0;i<time;i++){
            
        for(unsigned int j =0 ;j <500;j++);
        
      }
      
}

void allStart(void){
      
  LED4 = 1;
  delay(1000);
  LED3 = 1;
  delay(1000);
  LED6 = 1;
  delay(1000);
  LED5 = 1;
  delay(1000);
}

void allClose(void){
      
  LED4 = 0;
  delay(1000);
  LED3 = 0;
  delay(1000);
  LED6 = 0;
  delay(1000);
  LED5 = 0;
  delay(1000);
  
}
void main(void){
  initial_gpio();
  for(;;){
    allStart();
    allClose();
  }
}